﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Icon Overlay</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <link href="/icons/site.ico" rel="shortcut icon" type="image/x-icon" />
    <meta name="application-name" content="Sample Site Mode Application" />
    <meta name="msapplication-navbutton-color" content="lightgreen" />
    <meta name="msapplication-tooltip" content="Starte die Anwendung" />
    <meta name="msapplication-starturl" content="/08_overlayicons.htm" />
    <meta name="msapplication-window" content="width=800;height=600" />

    <script src="ie9helper.js" type="text/javascript"></script>
    
    <script type="text/javascript">

        function setIconOverlayHelper(iconpath, name) {
            if (isSiteMode()) {
                setIconOverlay(iconpath, name);
            } else {
                alert('Webseite wird nicht im IE9 Site-Mode angezeigt.');
            }
        }

        
    </script>
</head>
<body>

<p>
    <input id="Button1" type="button" value="Icon Overlay 1" 
        onclick="javascript:setIconOverlayHelper('icons/edit.ico', 'Overlay 1');";/>
    <input id="Button2" type="button" value="Icon Overlay 2" 
        onclick="javascript:setIconOverlay('icons/delete.ico', 'Overlay 2');";/>

</p>
    <p>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
        incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
        exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
        irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
        pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
        deserunt mollit anim id est laborum.
    </p>
    <p>
    </p>
</body>
</html>
